Package com.cisco.pt.ipc.sim
Interface SwitchPort
- All Known Implementing Classes:
SwitchPortImpl
Information provided by the PKI file:
\class SwitchPort
\brief SwitchPort handles and manipulates switch ports.
\example network().getDevice("Switch0").getPort("FastEthernet0/1")
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTrunkVlans(int start, int end) Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:voidremoveTrunkVlans(int start, int end) Information provided by the PKI file:voidsetAccessPort(boolean bAccessPort) Information provided by the PKI file:voidsetAccessVlan(int vlan) Information provided by the PKI file:voidsetAdminOpMode(SwitchPortMode type) Information provided by the PKI file:voidsetCdpEnable(boolean bCDPEnable) Information provided by the PKI file:voidsetNativeVlanId(int vlanID) Information provided by the PKI file:voidsetNonegotiateFlag(boolean bFlag) Information provided by the PKI file:voidsetVoipVlanId(int vlanID) Information provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Port
deleteLink, getBandwidth, getBia, getChannel, getClockRate, getDescription, getEncapProcess, getHardwareQueue, getHigherProcessCount, getKeepAliveProcess, getLightStatus, getLink, getMacAddress, getName, getPortNameNumber, getPower, getQosQueue, getTerminalTypeShortString, getType, isAutoCross, isBandwidthAutoNegotiate, isDuplexAutoNegotiate, isEthernetPort, isFullDuplex, isPortUp, isPowerOn, isProtocolUp, isStraightPins, isWirelessPort, setBandwidth, setBandwidthAutoNegotiate, setChannel, setClockRate, setDescription, setDuplexAutoNegotiate, setFullDuplex, setMacAddress, setPowerMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Method Details
-
setAccessPort
void setAccessPort(boolean bAccessPort) Information provided by the PKI file:
\brief Enables or disables switch mode access. \param bAccessPort, true to enable switch mode access, false to disable it.- Parameters:
bAccessPort- Takes in a parameter of bAccessPort
-
isAccessPort
boolean isAccessPort()Information provided by the PKI file:
\brief Returns true if switch mode access is enabled, otherwise false. \return bool, true if switch mode access is enabled, otherwise false.- Returns:
- boolean Returns a boolean
-
setAccessVlan
void setAccessVlan(int vlan) Information provided by the PKI file:
\brief Sets the access VLAN. \param int, the VLAN number.- Parameters:
vlan- Takes in a parameter of vlan
-
getAccessVlan
int getAccessVlan()Information provided by the PKI file:
\brief Returns the access VLAN. \return int, the VLAN number.- Returns:
- int Returns a int
-
addTrunkVlans
void addTrunkVlans(int start, int end) Information provided by the PKI file:
\brief Adds trunk VLANs. \param start, the first trunk VLAN number. \param end, the last trunk VLAN number.- Parameters:
start- Takes in a parameter of startend- Takes in a parameter of end
-
removeTrunkVlans
void removeTrunkVlans(int start, int end) Information provided by the PKI file:
\brief Removes the specified trunk VLANs. \param start, the first trunk VLAN number. \param end, the last trunk VLAN number.- Parameters:
start- Takes in a parameter of startend- Takes in a parameter of end
-
setCdpEnable
void setCdpEnable(boolean bCDPEnable) Information provided by the PKI file:
\brief Enables or disables CDP. \param bCDPEnable, true to enable CDP, false to disable it.- Parameters:
bCDPEnable- Takes in a parameter of bCDPEnable
-
isCdpEnable
boolean isCdpEnable()Information provided by the PKI file:
\brief Returns true if CDP is enabled, otherwise false. \return bool, true if CDP is enabled, otherwise false.- Returns:
- boolean Returns a boolean
-
setNativeVlanId
void setNativeVlanId(int vlanID) Information provided by the PKI file:
\brief Sets the native VLAN ID. \param vlanID, the native VLAN number.- Parameters:
vlanID- Takes in a parameter of vlanID
-
getNativeVlanId
int getNativeVlanId()Information provided by the PKI file:
\brief Returns the native VLAN ID. \return int, the native VLAN number.- Returns:
- int Returns a int
-
setVoipVlanId
void setVoipVlanId(int vlanID) Information provided by the PKI file:
\brief Sets the VOIP VLAN ID. \param vlanID, the VOIP VLAN number.- Parameters:
vlanID- Takes in a parameter of vlanID
-
getVoipVlanId
int getVoipVlanId()Information provided by the PKI file:
\brief Returns the VOIP VLAN ID. \return int, the VOIP VLAN number.- Returns:
- int Returns a int
-
setNonegotiateFlag
void setNonegotiateFlag(boolean bFlag) Information provided by the PKI file:
\brief Enables or disables nonnegotiate. \param bFlag, true to enable nonnegotiate, false to disable it.- Parameters:
bFlag- Takes in a parameter of bFlag
-
isNonegotiate
boolean isNonegotiate()Information provided by the PKI file:
\brief Returns true if this nonnegotiate is enabled, otherwise false. \return bool, true if this nonnegotiate is enabled, otherwise false.- Returns:
- boolean Returns a boolean
-
setAdminOpMode
Information provided by the PKI file:
\brief Sets the admin op port mode. \param type, the port mode. Port modes: eAdminDynamicDesirable = 0, eAdminDynamicAuto = 1, eAdminOperationTrunk = 2, eAdminOperationAccess = 3- Parameters:
type- Takes in a parameter of type
-
getAdminOpMode
int getAdminOpMode()Information provided by the PKI file:
\brief Returns the admin op port mode. \return int, the port mode. Port modes: eAdminDynamicDesirable = 0, eAdminDynamicAuto = 1, eAdminOperationTrunk = 2, eAdminOperationAccess = 3- Returns:
- int Returns a int
-
isAdminModeSet
boolean isAdminModeSet()Information provided by the PKI file:
\brief Returns true if admin op port mode is set, otherwise false. \return bool, true if admin op port mode is set, otherwise false.- Returns:
- boolean Returns a boolean
-
getPortSecurity
PortSecurity getPortSecurity()Information provided by the PKI file:
\brief Returns the port security. \return PortSecurity, the PortSecurity object.- Returns:
- PortSecurity Returns a PortSecurity
-